package quoridor;

public enum PlayerColour {
	WHITE, BLACK, INVALID;
	
	public static PlayerColour otherColour(PlayerColour currentColour) {
		switch(currentColour) {
			case WHITE: 
				return BLACK;
			case BLACK:
				return WHITE;
			default:
				throw new IllegalStateException("invalid colour");
		}
	}
}
